set(MODULE iot-acq)
find_package(yaml-cpp REQUIRED)

include_directories(./
        )
aux_source_directory(./ SRC)
add_executable(${MODULE} ${SRC})
# add_dependencies(${MODULE} vendor)
target_link_directories(${MODULE} PUBLIC ${JSONCPP_LIBS_DIR})
target_link_libraries(${MODULE} jsoncpp yaml-cpp::yaml-cpp settings vendor leoyun data-acq)
target_include_directories(${MODULE} PUBLIC ${JSONCPP_INCLUDE_DIR}
    ${PRODUCT_ROOT_DIR}/foundation/webconfig/
    ${PRODUCT_ROOT_DIR}/communications)

install(TARGETS ${MODULE}
    RUNTIME DESTINATION $<CONFIG>/bin
    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ
)

install(FILES xcom_parser.xcom
        DESTINATION $<CONFIG>/config/
        PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ)